<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>添加年级信息</title>
</head>
<link href="${pageContext.request.contextPath}/static/core/css/style.css">
<body>
<style>
    .modal.fade.in {
        top: 90px;
    }
</style>
<script>
    function commint() {
        $(".add-enrol-form").submit();
    }
</script>
<!--主容器-->
<div class="container">
    <div class="row">
        <div class="col-md-12">

            <div class="add-enrol-form-content">
                <h1 class="text-center">添加年级</h1>
                <form class="form-horizontal add-enrol-form" action="${pageContext.request.contextPath}/enrol/adddo" method="post">
                    <div class="form-group">
                        <label for="enrol-code" class="col-sm-2 control-label">年级编号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="enrolCode"   id="enrol-code" placeholder="请输入年级编号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="enrol-name" class="col-sm-2 control-label">年级名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="enrolName" id="enrol-name" placeholder="请输入年级名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="enrol-count" class="col-sm-2 control-label">入学人数</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="enrolCount" id="enrol-count" placeholder="请输入学人数">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="enrol-content" class="col-sm-2 control-label">年级介绍</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="enrolContent" id="enrol-content" placeholder="请输年级介绍">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-5 col-sm-7">
                            <button  class="btn btn-info" onclick="commint()">添加</button>

                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>

</body>
</html>
